package gui;

import javax.swing.JFrame;
import java.awt.Dimension;
import javax.swing.JPanel;
import java.awt.GridBagLayout;
import javax.swing.JTextArea;
import java.awt.Rectangle;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;

public class HelpFrame extends JFrame{

	private JPanel jPanelHelp = null;
	private JTextArea jTextAreaContant = null;
	private JButton jButtonExit = null;
	private JLabel jLabelHelp = null;

	/**
	 * This method initializes 
	 * 
	 */
	public HelpFrame() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 */
	private void initialize() {
        this.setSize(new Dimension(600, 720));
        this.setTitle("HELP");
        this.setContentPane(getJPanelHelp());
			
	}

	/**
	 * This method initializes jPanelHelp	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJPanelHelp() {
		if (jPanelHelp == null) {
			jLabelHelp = new JLabel();
			ImageIcon imageH = new ImageIcon("easy_help_logo_small.jpg");						
			jLabelHelp.setIcon(imageH);
			jLabelHelp.setBounds(new Rectangle(66, 6, 450, 110));			
			jPanelHelp = new JPanel();
			jPanelHelp.setLayout(null);
			jPanelHelp.add(getJTextAreaContant(), null);
			jPanelHelp.add(getJButtonExit(), null);
			jPanelHelp.add(jLabelHelp, null);
		}
		return jPanelHelp;
	}

	/**
	 * This method initializes jTextAreaContant	
	 * 	
	 * @return javax.swing.JTextArea	
	 */
	private JTextArea getJTextAreaContant() {
		if (jTextAreaContant == null) {
			jTextAreaContant = new JTextArea();
			jTextAreaContant.setBounds(new Rectangle(31, 123, 518, 488));
			jTextAreaContant.setText("We've created this site map so that you can find exactly what you're looking in Teleflora and \nFTD flowers and gifts at the click of a button.  If you need assistance with online ordering,\n please email us at CustomerService@ZER-LEHA.com\n" +
					"Thank you for shopping with ZER-LEHA!\n" +
					"ZER-LEHA Home Page - Start here for current flower and gift specials and an introduction to\nour site." +
					"Shop by Flower Type - Specialty flower and gift items categorized by \nproduct type including orchids, tropical flowers, and plants and dish \ngardens.\n" +
					"* Plants\n* Flowers\n* Vases\n *Top Sellers\n *bridal bouquet\n" +
					"Shop by Flower Color - Shop by flower color. Does pink tickle her fancy, or \ndoes she like firey red and bright oranges? We have every color in the \nrainbow!\n" +
					"* Orange Flowers\n* Purple Flowers\n* Red Flowers\n *White Flowers\n *Yellow Flowers\n" +
					"About Us - Information about ZER-LEHA as well as company and \ncustomer service contact information for assistance with online flower \nordering.\n" +
					"Delivery and Privacy Policy Info - ZER-LEHA policies for ordering and \nflower delivery.\n" +
					"");
		}
		return jTextAreaContant;
	}

	/**
	 * This method initializes jButtonExit	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonExit() {
		if (jButtonExit == null) {
			jButtonExit = new JButton();
			jButtonExit.setBounds(new Rectangle(180, 615, 272, 48));
			jButtonExit.setText("EXIT");
			jButtonExit.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					HelpFrame.this.dispose();
				}
			});
		}
		return jButtonExit;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
